<?php
namespace Zxf5115\Laravel\Resource\Controllers\Api;

use Zxf5115\Laravel\Kernel\Controllers\Api\ApiController;

/**
 * @author zhangxiaofei [<1326336909@qq.com>]
 * @dateTime 2025-09-17
 *
 * 接口资源控制器类
 */
class ResourceController extends ApiController
{
  /**
   * 模型类名
   */
  protected string $modelClass = 'Zxf5115\Laravel\Resource\Models\Api\Resource';

  /**
   * 允许客户端查询关键字参数
   */
  protected array $allowKeywordParams = [
    'receive' => 'keyword',
    'match' => [
      'name',
      'size',
      'extension',
      'url',
      'hash',
    ]
  ];
}
